<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2024/10/6
  Time: 21:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% String errorInfo = (String)request.getAttribute("error");
    String successInfo = (String)request.getAttribute("success");
    String loginInfo = (String)request.getAttribute("loginInfo");
%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<% if(errorInfo != null) { %>
<h3><% out.println(errorInfo); %></h3>
<% } %>
<% if(successInfo != null) { %>
<h3><% out.println(successInfo); %></h3>
<% } %>
<% if(loginInfo != null) { %>
<h3><% out.println(loginInfo); %></h3>
<% } %>
<form action="loginServlet" method="post">
    用户名：<input type="text" name="username"> <br>
    密  码：<input type="password" name="password"> <br>
    <input type="submit" value="登录"> <br>
    没有账号，<a href="register.jsp">点击注册</a>
</form>
</body>
</html>
